package com.whats.indicator.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Objects;

@Data
public class EquipAssetstCompositeKey implements Serializable {
    private String objId;
    private LocalDateTime lastUpdateTime;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EquipAssetstCompositeKey compositeKey = (EquipAssetstCompositeKey) o;
        return Objects.equals(objId, compositeKey.objId) &&
                Objects.equals(lastUpdateTime, compositeKey.lastUpdateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(objId, lastUpdateTime.toString());
    }


}
